import request from '@/utils/request'

export function getArtCategory() {
  return request({
    url: '/art/category/list',
    method: 'get'
  })
}

export function updateCategory(data){
    return request({
        url: '/art/category/edit',
        method: 'put',
        data
    })
}

export function deleteCategory(data){
  return request({
    url: '/art/category/edit',
    method: 'delete',
    data
  })  
}

export function editArticle(data){
  return request({
    url: '/art/article/edit',
    method: 'post',
    data
  })
}
